package com.kuang.dao;


import com.kuang.pojo.Readers;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReaderMapper {
    //增加一位读者
    int addReader(Readers readers);
    //删除一本书
    int deleteReaderById(@Param("readersId") int id);
    //更新一本书
    int updateReader(Readers readers);
    //查询一本书
    Readers queryReaderById(@Param("readersId") int id);
    //查询全部的书籍
    List<Readers> queryAllReader();

    List<Readers> querReaderByNo(@Param("readersNo") String readersNo);
}
